import {createBrowserRouter} from "react-router-dom";
import New from "@/pages/New";
import Layout from "@/pages/Layout";
import Month from "@/pages/Layout/Month";
import Year from "@/pages/Layout/Year";

const router=createBrowserRouter([
    {
        path:'/new',
        element:<New/>
    },
    {
        path:'/layout',
        element:<Layout/>,
        children:[
            {
               index:true,
                element:<Month/>
            },
            {
                path:'/layout/year',
                element:<Year/>
            }
        ]
    },
])

export default router